﻿@{
    ViewBag.Title = "AutoPayment";
    Layout = "~/Views/Shared/_AutoPayment_Menu.cshtml";
    var id = ViewBag.UserId;
}

<h2>AutoPayment</h2>


<div>
    @Html.Partial("_Cards")
</div>

@section cardsScript {
    <script type="text/javascript">
        $(function() {
            rowClickHandler = function () {
                $("#paymentMenuItem").removeClass('invisible');
                $(".selected").toggleClass("selected");
                $(this).toggleClass("selected");
                $("#cardNumber").attr("value", $(".selected").find("td:first").text());
            };
        });
    </script>
}

